package com.wjjm.spoonselling.service;

import com.wjjm.spoonselling.pojo.Merchant;
import com.wjjm.spoonselling.util.Result;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface MerchantService {

    /**
     * 登录
     * @param merchant 用户名和密码
     * @return
     */
    Result login(Merchant merchant);

    /**
     * 注册
     * @param merchant
     * @return
     */
    Result register(Merchant merchant);

    Merchant selectByName(String name);

    boolean update(Merchant merchant);
}
